-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
refactor: migrate WASignalGroup to TypeScript and remove deprecated files #1320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
refactor: migrate WASignalGroup to TypeScript and remove deprecated files #1320
Conversation
Thanks for your contribution. The next step is to wait for review and approval to merge it to main repository The community can help reacting with a thumb up (:thumbsup:) for approval and rocket (:rocket:) for who has tested it. To test this PR you can run the following command below:
|
@@ -0,0 +1,96 @@ | |||
import { proto } from '../../WAProto'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what i mean with reusing proto types
Very much needed |
But does it work? |
Preliminarily yes. |
Any kind of performance improvements? |
The performance gains here is minimal. (dev experience is the bigger gain) |
I see no need of removing the proto because it's not packed in the npm release, a those files are used for development and are very important |
Yeah. Check the bundled files on npm: https://www.npmjs.com/package/baileys?activeTab=code |
ohh I see, very clever there, I thought it was 2 different protos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good for now, great work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix types and merge conflict
…to refactor-wasignalgroup-to-typescript
…s to export and add deserialize method. Fix types
failed, App\node_modules\libsignal\src\crypto.js:11 TypeError: Expected Buffer instead of: Object |
can you provide an reproduction? |
Moved to draft to investigate the problem that @AliAryanTech has reported |
Moving WASignalGroup to src and translated to typescript.
Removed
group.proto
and GroupProtocol because this can be reused in the main file of WAProto.